package STUDENT.LETRUNGHIEU.GENERICS_EXERCISES.controllers;

import STUDENT.LETRUNGHIEU.GENERICS_EXERCISES.models.Models;
import STUDENT.LETRUNGHIEU.GENERICS_EXERCISES.objects.Book;
import STUDENT.LETRUNGHIEU.GENERICS_EXERCISES.objects.Reader;

public class Controllers {
	Models modObj = new Models();
	
	public void checkInput(Book bookObj){
		modObj.addBook(bookObj);
	}
	
	public void checkOutput(){
		modObj.showBook();
	}
	
	public void checkInput2(Reader readerObj){
		modObj.addReader(readerObj);
	}
	
	public void checkOutput2(){
		modObj.showReader();;
	}
	
	public void checkBorrow(String bookName, String readerName){
		modObj.brrowBook(bookName, readerName);
	}
	
	public void checkShowBorrow(){
		modObj.showBorrow();
	}
}
